package com.newcoder.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;
/**
 * <p>
 * 
 * </p>
 *
 * @author yjh
 * @since 2024-12-04 10:03:26
 */
@Data   //@Data 是一个 Lombok 提供的注解，它可以自动为类生成常用的方法，包括 getter、setter、equals、hashCode 和 toString 等,但只有无参构造方法
@Accessors(chain = true)
@ApiModel(value = "DiscussPost对象", description = "")
public class DiscussPost implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private Integer id;

    // @Field(type = FieldType.Integer)
    private Integer userId;

    // @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String title;

    // @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String content;

    // @Field(type = FieldType.Integer)
    @ApiModelProperty("0-普通; 1-置顶;")
    private Integer type;

    // @Field(type = FieldType.Integer)
    @ApiModelProperty("0-正常; 1-精华; 2-拉黑;")
    private Integer status;

    // @Field(type = FieldType.Date)
    private Date createTime;

    // @Field(type = FieldType.Integer)
    private Integer commentCount;

    // @Field(type = FieldType.Double)
    private Double score;
}
